package com.xbongbong.paas.pojo.workflow.settings.vo;

import com.xbongbong.paas.field.FormulaPoJo;
import com.xbongbong.workflow.pojo.WorkflowOperationsPojo;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author 吴峰
 * @date 2021/05/28 17:15
 */
@Getter
@Setter
@ToString
public class WorkflowOperationsVO extends WorkflowOperationsPojo {
    private static final long serialVersionUID = -5125720157101602088L;

    private String nodeName;

    public WorkflowOperationsVO(String nodeName, Long workflowNodeId, Long formId, Integer businessType, Integer saasMark, Integer triggerNodeFlag,
                                @NotEmpty(message = "目标表单字段不能为空") String attr, String attrName, @NotNull(message = "字段类型不能为空") Integer fieldType,
                                @NotEmpty(message = "操作标示不能为空") String symbol,
                                @NotNull(message = "值类型不能为空") Integer valueType, Object value, String valueAttr, Integer valueFieldType, String valueAttrName, FormulaPoJo formulaInfo) {
        super(workflowNodeId, formId, businessType, saasMark, triggerNodeFlag, attr, attrName, fieldType, symbol, valueType, value, valueAttr, valueFieldType, valueAttrName, formulaInfo);
        this.nodeName = nodeName;
    }
}
